/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     multiVarButton.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef MULTIVARBUTTON_H_
#define MULTIVARBUTTON_H_
#include "type.h"
#include "module_select.h"
/*************VarKey****************/
typedef struct
{
	uint16_t Code; // Function code
	uint8_t len;   // lenght
	uint16_t Xs;   // Upper left corner coordinate
	uint16_t Ys;
	uint16_t Xe; // Lower right corner coordinate
	uint16_t Ye;
	uint16_t id; // icon id
	uint16_t press_id;
	uint16_t Next_id;
	uint16_t var_addr[8];
	uint16_t var[8];
	uint16_t overlay;
} VarKey_Info;
extern VarKey_Info gVarKey_Info[];
extern uint8_t VarKey_count;
extern uint8_t VarKey_flag;
extern uint8_t VarKey_num;
/************************************/

extern void VarKey_touch(void);
void VarKey_touch_overlay(uint16_t id, uint8_t num);
#endif /* MULTIVARBUTTON_H_ */
